package com.cn.reportforms.service.impl;

import com.cn.reportforms.dao.ExportSettingMapper;
import com.cn.reportforms.dataSource.RoutingDataSource;
import com.cn.reportforms.entity.ExportSetting;
import com.cn.reportforms.entity.ExportSettingQuery;
import com.cn.reportforms.entity.ExportSettingWithBLOBs;
import com.cn.reportforms.service.ExportSettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 描述：
 *
 * @author chen_q_i@163.com
 * 2019/4/18 : 20:41.
 * @version : 1.0
 */
@Service
public class ExportSettingServiceImpl implements ExportSettingService {

    @Autowired
    ExportSettingMapper exportSettingMapper;

    @Override
    public int countByExample(ExportSettingQuery example) {
        return 0;
    }

    @Override
    public int deleteByExample(ExportSettingQuery example) {
        return 0;
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return 0;
    }

    @Override
    public int insert(ExportSettingWithBLOBs record) {
        return exportSettingMapper.insert(record);
    }

    @Override
    public int insertSelective(ExportSettingWithBLOBs record) {
        return exportSettingMapper.insertSelective(record);
    }

    @Override
    public List<ExportSettingWithBLOBs> selectByExampleWithBLOBs(ExportSettingQuery example) {
        return exportSettingMapper.selectByExampleWithBLOBs(example);
    }

    @Override
    public List<ExportSetting> selectByExample(ExportSettingQuery example) {
        return exportSettingMapper.selectByExample(example);
    }

    @Override
    public ExportSettingWithBLOBs selectByPrimaryKey(Long id) {
        return exportSettingMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(ExportSettingWithBLOBs record, ExportSettingQuery example) {
        return 0;
    }

    @Override
    public int updateByExampleWithBLOBs(ExportSettingWithBLOBs record, ExportSettingQuery example) {
        return 0;
    }

    @Override
    public int updateByExample(ExportSetting record, ExportSettingQuery example) {
        return 0;
    }

    @Override
    public int updateByPrimaryKeySelective(ExportSettingWithBLOBs record) {
        return exportSettingMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(ExportSettingWithBLOBs record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(ExportSetting record) {
        return 0;
    }

    @Override
    @RoutingDataSource("two")
    public List<Map<String, Object>> selectBySqlStr(String sqlStr) {
        return exportSettingMapper.selectBySqlStr(sqlStr);
    }
}
